import TextControl, { type IInputView } from '.';
import BaseControlService from '../base/service';

class TextControlService extends BaseControlService implements IInputView {
  label: string = '';
  text: string = '';
  component = TextControl;

  constructor({ label, text }: { label: string, text: string }) {
    super();
    this.text = text;
    this.label = label;
  }

  init(): void {
    // 无需初始化
  }
}

export default TextControlService;
